package com.usian.admin.feign;

import com.usian.model.article.pojos.ApArticle;
import com.usian.model.article.pojos.ApArticleConfig;
import com.usian.model.article.pojos.ApArticleContent;
import com.usian.model.article.pojos.ApAuthor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-article")
public interface ApArticleFeign {
    @RequestMapping("/api/v1/article/saveArticle")
    ApArticle save(ApArticle apArticle);
    @RequestMapping("/api/v1/article//saveConfig")
    ApArticleConfig save(ApArticleConfig config);
    @RequestMapping("/api/v1/article//saveContennt")
    ApArticleContent save(ApArticleContent content);
    @GetMapping("/api/v1/author/findByUserId/{id}")
    ApAuthor findByUserId(@PathVariable Integer id);
}
